<template>
    <nav>
        <i class="fa fa-hand-o-left" @click="shang"></i>
        <slot></slot>
    </nav>
</template>
<script>
      export default{
        methods:{
        shang(){
            this.$router.go(-1)
        }  
    }
    }
</script>
<style scoped>
    nav{
        height: 44px;
        width:100%;
        background: #333333;
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 100;
    }
    nav>i{
        font-size: 0.5rem;
        display: inline-block;
        color: #ccc;
         margin-left: 0.7rem;
        position:relative;
        top:0.2rem;
    }
  
</style>